home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 November / MACPOWER-1997-11.ISO.7z / MACPOWER-1997-11.ISO / AMUG / MUSIC / bol-processor-271-data.sit / bol-processor-271-data / BP2 examples / BP2 data / -da.tryStrikeMode < prev    next >
Text File  |  1997-03-12  |  4KB  |  102 lines

  1. // Bol Processor version BP2.7
  2. // Data file saved as '-da.tryStrikeMode'. Date: Mer 12 Mars 1997 -- 1d50i
  3. -se.tryStrikeMode
  4. -ho.tryStrikeMode
  5.  
  6. // File メ-da.tryStrikeModeモ
  7.  
  8. // This is a demo of the strike mode which can be modified in window メSettingsモ
  9. // and in sound-object prototype specifications.
  10.  
  11. // The following piece demonstrates the effect on the MIDI output
  12.  
  13.    {C5 D5 C5 C5,C5 D5 C5}
  14.  
  15. // Not a great piece, eh?
  16. // Now, display window メSettingsモ and change to メDon't strike again NoteOn'sモ. Play the same
  17. // and hear the difference.
  18.  
  19. // You will agree that neither is representative of what is shown in the graphic window.
  20. // This is not BP2's fault, but a limitation of MIDI: you can't strike two NoteOn's with
  21. // the same key and channel consecutively ;-(
  22. // However, BP2 deals with this situation in two optional ways that do not cause the synth
  23. // to hang :-)
  24.  
  25. // If you are playing sound-objects rather than simple notes you can set the strike mode
  26. // option for each sound-object prototype.
  27. // (Type command-E and click メPeriod (cyclic object)/strike modeモ to see how it looks)
  28.  
  29.  
  30. // ..................................FOR Csound USERS.................................
  31.  
  32. // The good news is that Csound doesn't have that limitation. Let's demonstrate it.
  33. // We'll take the default instrument specification, rather than load a ヤ-csユ file.
  34. // (Look at メCsound instrument specsモ in the メOutputモ menu if you are curious.)
  35.  
  36. // Display window メSettingsモ and check メWrite Csound scoresモ (bottom) and
  37. // メTrace Csoundモ (top). The latter will make the Csound score visible
  38. // in the メTraceモ window.  Now try again to play
  39.  
  40.    {C5 D5 C5 C5,C5 D5 C5}
  41.  
  42. // and save it as a Csound score. (Use anything, such as メa.scoモ, as a file name)
  43.  
  44. // Look at the score obtained in the メTraceモ window
  45.  
  46. t 0 60.0000
  47. i1 0.000 1.000 8.00 
  48. i1 0.000 1.333 8.00 
  49. i1 1.000 1.000 8.02 
  50. i1 1.333 1.333 8.02 
  51. i1 2.000 1.000 8.00 
  52. i1 3.000 1.000 8.00
  53. i1 2.666 1.333 8.00
  54.  
  55. // For instance, the last two lines indicates that the メC5モ starting on the 3d beat
  56. // is striked again although it had already been striked on the 2.666 th beat.
  57. // You get the same result whatever the default strike mode setting.
  58.  
  59. // BP2 may get in trouble again if it needs to create a Csound score using a sound-object
  60. // that does not contain a Csound score, but a MIDI stream instead. In converting MIDI to
  61. // Csound it is faced with what to do when two consecutive NoteOn's are found on the same
  62. // key and the same channel.
  63. // The problem may occur when two sound-objects in the same sequence are overlapping.
  64. // In this situation, the present version of BP2 resorts to what the sound-object
  65. // prototype's strike mode, or the メDefault strike modeモ, tells it to do.
  66.  
  67. // For instance, sound-object 'one' contains the notes E5 F5, whereas sound-object 'two'
  68. // contains {5/6,C5 D5 E5 F5 G5} A5 with a pivot located exactly on the beginning of A5.
  69. // If these objects are played in sequence "one two" at metronom 30, they overlap.
  70. // In the overlapping, the  note F5 needs to be stroked again on the same channel.
  71.  
  72. // Set the metronom to mm = 30.
  73. // Listen to メone twoモ on MIDI with the option メStrike again NoteOn'sモ checked and unchecked.
  74.  
  75. // Do the same producing Csound scores.
  76. // With メStrike again NoteOn'sモ checked we obtain:
  77.  
  78. t 0.000 30.000
  79. i1 0.000 0.500 8.04 ; E5
  80. i1 0.584 0.083 8.00 ; C5
  81. i1 0.666 0.084 8.02 ; D5
  82. i1 0.750 0.084 8.04 ; E5
  83. i1 0.500 0.334 8.05 ; F5 is shorter, it should be 0.5 beat
  84. i1 0.834 0.166 8.05 ; F5 is striked again
  85. i1 0.916 0.084 8.07 ; G5
  86. i1 1.000 0.500 8.09 ; A5
  87. e
  88.  
  89. // With メStrike again NoteOn'sモ unchecked we obtain:
  90.  
  91. t 0.000 30.000
  92. i1 0.000 0.500 8.04 ; E5
  93. i1 0.584 0.083 8.00 ; C5
  94. i1 0.666 0.084 8.02 ; D5
  95. i1 0.750 0.084 8.04 ; E5
  96. i1 0.500 0.500 8.05 ; F5 is striked once and then ignored
  97. i1 0.916 0.084 8.07 ; G5
  98. i1 1.000 0.500 8.09 ; A5
  99. e
  100.  
  101. // BP2 could avoid resorting to the strike mode in this case also, but for a general case it
  102. // might take too much computational space, so it has not yet been attempted.